﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using StyleMVVM.Data;
using StyleMVVM.Data.Transform;

namespace SimpleWeather.BusinessEntities
{
	public class CityWeather : ComplexObject
	{
		private string postalCode;
		private CurrentWeatherInfo currentWeather;
		private ExtendedForecast extendedForecast;

		public string CityDisplayName
		{
			get
			{
				if(CurrentWeather != null)
				{
					return string.Format("{0}, {1} ", CurrentWeather.City, CurrentWeather.State);
				}

				return null;
			}
		}

		public CurrentWeatherInfo CurrentWeather
		{
			get { return currentWeather; }
			set { SetProperty(ref currentWeather, value); }
		}

		public ExtendedForecast ExtendedForecast
		{
			get { return extendedForecast; }
			set { SetProperty(ref extendedForecast, value); }
		}

		public string PostalCode
		{
			get { return postalCode; }
			set { SetProperty(ref postalCode, value); }
		}
	}
}
